﻿using AuthCenter.Domain;
using AuthCenter.Domain.Account;
using AuthCenter.Domain.Menu;
using AuthCenter.Domain.Request;
using Microsoft.EntityFrameworkCore;

namespace AuthCenter.Intertructrue
{
    public class WorkDbContext : DbContext
    {
        public WorkDbContext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 用户数据集
        /// </summary>
        public DbSet<AccountModel> Accounts { get; set; }
        /// <summary>
        /// 用户角色数据集
        /// </summary>
        public DbSet<AccountRoleModel> AccountRoles { get; set; }
        /// <summary>
        /// 角色数据集
        /// </summary>
        public DbSet<RoleModel> Roles { get; set; }
        /// <summary>
        /// 菜单数据集
        /// </summary>
        public DbSet<MenuModel> Menus { get; set; }
        /// <summary>
        /// 角色菜单数据集
        /// </summary>
        public DbSet<RoleMenuModel> RoleMenus { get; set; }
        /// <summary>
        /// 申请数据集
        /// </summary>
        public DbSet<RequestModel> Requests { get; set; }
        /// <summary>
        /// 日志数据集
        /// </summary>
        public DbSet<LogModel> Logs { get; set; }
        /// <summary>
        /// 省数据集
        /// </summary>
        public DbSet<ProvincesModel> Provinces { get; set; }
        /// <summary>
        /// 市数据集
        /// </summary>
        public DbSet<CityModel> Citys { get; set; }
        /// <summary>
        /// 县数据集
        /// </summary>
        public DbSet<XianModel> Xians { get; set; }
    }
}
